﻿using _220105BookSys.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace _220105BookSys.Dto.BookType
{
    /// <summary>
    /// 此处默认只能更改书籍分类名称，若要修改Book，则封装在BookController中
    /// </summary>
    public class BookTypeDtoForPutUpdate
    {
        //public Guid Id { get; set; }

        //[Required]
        [Display(Name = "书籍分类名称"), StringLength(20, ErrorMessage = "长度4-20", MinimumLength = 4)]
        //[Column(TypeName = "varchar(20)")]
        public string Name { get; set; }

        //public ICollection<Book> Books { get; set; } = new List<Book>();
    }
}
